package models

import (
	"gorm.io/gorm"
)

type Project struct {
	gorm.Model
	Id          uint   `json:"id"`
	Name        string `json:"name" gorm:"unique" validate:"required,min=3,max=20"`
	Description string `json:"description" validate:"required"`
	Price       string `json:"price" validate:"required"`
	Link        string `json:"link" validate:"required"`
}
type Skill struct {
	gorm.Model
	Name        string `json:"name" gorm:"unique" validate:"required,min=3,max=20"`
	Description string `json:"description" validate:"required"`
}
type Job struct {
	gorm.Model
	Name string `json:"name" gorm:"unique" validate:"required,min=3,max=20"`

	Description string `json:"description" validate:"required"`
}
type Contact struct {
	gorm.Model
	Name string `json:"name" gorm:"unique" validate:"required,min=3,max=20"`

	URL  string `json:"url" validate:"required"`
	Type string `json:"type" validate:"required"`
}
type User struct {
	ID   uint   `gorm:"primary_key"`
	Name string `json:"name" gorm:"unique" validate:"required,min=3,max=20"`

	Pass     string `json:"pass"`
	Is_admin bool   `json:"Is_admin"`
}
